import dayjs from 'dayjs'
import 'dayjs/locale/zh-cn'
import Vue from 'vue'
dayjs.locale('zh-cn')
var relativeTime = require('dayjs/plugin/relativeTime')
dayjs.extend(relativeTime)
Vue.filter('relativeTime', (value) => {
  return dayjs().to(dayjs(value))
})
